package common;

public class SLA {
	private static final String[] blackList = {"Happy", "Bunny", "Apocalypse", "Dan"};
	
	public static Boolean  checkMessageSLA(String message){
		for (int i = 0; i < SLA.blackList.length; i++) {
			if (message.indexOf(SLA.blackList[i]) >= 0)
				return false;
		}
		return true;
	}
	
	public static String getAgrrement(){
		StringBuilder sb = new StringBuilder("The following words are forbidden:\n");
		for (String word : blackList) {
			sb.append(word).append("\n");
		}
		return  sb.toString();
	}
}

 